/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package pw.yitree.model;

import java.sql.ResultSet;
import java.sql.SQLException;
import org.springframework.jdbc.core.RowMapper;
import pw.yitree.domain.User;

/**
 *
 * @author Administrator
 */
public class PersonRowMapper implements RowMapper {

    @Override
    public Object mapRow(ResultSet set, int index) throws SQLException {
        User person = new User();
        person.setId(set.getLong("id"));
        return person;
    }

}
